<template>
	<view>
		<roc-navbar :title="urlQuery.menuTitle"></roc-navbar>
		<view class="u-p-20">
			<roc-diyform
				v-if="Object.keys(urlQuery).length"
				:modelId="urlQuery.modelId"
				:showFormData="showFormData"
				@roc-submit="submit"
			></roc-diyform>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			urlQuery: {},
			// 表单回显数据
			showFormData: {
				// uhe5usspcctr: '名称名称名称名称名称名称',
				// '87k5usspcrta': 123,
				// '1hb5usspd2kl': '/img_test/1651892298__我的 (1).png'
			}
		};
	},
	onLoad(option) {
		this.urlQuery = option;
	},
	methods: {
		submit(formData) {
			console.log(formData, '表单提交的数据');
		}
	}
};
</script>

<style></style>
